package net.jkdmanager.common.launcher;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CommonLauncher {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		String mainConfig = System.getProperty("config");
		
		//ApplicationContext context = 
		new ClassPathXmlApplicationContext(mainConfig);
				//"/spring/server/server-config.xml");

        System.out.println("Application started using config file: " + mainConfig);
        
		while (true) {
			try {
				Thread.sleep(1000);
			} catch (InterruptedException ie) {
				break;
			}
		}
		
		System.out.println("Application finished");

	}

}
